package com.erp.erp_entitys.warehouse.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 盘点明细表(InventoryDetail)实体类
 *
 * @author lst
 * @since 2020-07-24 13:04:56
 */
public class InventoryDetailEntity implements Serializable {
    private static final long serialVersionUID = -95750893981901943L;
    /**
    * 主键
    */
    private Integer id;
    /**
    * 盘点id
    */
    private Integer inventoryId;

    /**
     * 库存id
     */
    private Integer stockId;
    /**
     * 库存明细id
     */
    private Integer stockDetailId;
    /**
    * 仓库id
    */
    private String warehouseId;
    /**
    * 产品编码
    */
    private String productCode;
    /**
    * 规格编码
    */
    private String specificationCode;
    /**
    * 规格说明
    */
    private String specificationExplanation;
    /**
    * 实盘数量
    */
    private BigDecimal realInventoryNum;
    /**
    * 抄库数量
    */
    private BigDecimal copyStockNum;
    /**
    * 盈亏数量
    */
    private BigDecimal profitLossNum;
    /**
    * 成本单价
    */
    private BigDecimal costUnitPrice;
    /**
    * 单位
    */
    private String productUnit;
    /**
    * 客户货号
    */
    private String clientProductNo;
    /**
    * 产品中文名称
    */
    private String productCname;
    /**
    * 产品英文名称
    */
    private String productEname;
    /**
    * 产品中文描述
    */
    private String productCdesc;
    /**
    * 产品英文描述
    */
    private String productEdesc;
    /**
    * 颜色
    */
    private String color;
    /**
    * 批次号
    */
    private String lotNo;
    /**
    * 托盘入数
    */
    private BigDecimal trayNumber;
    /**
    * 总托盘
    */
    private BigDecimal totalTray;
    /**
    * 盈亏金额
    */
    private BigDecimal profitLossMoney;
    /**
    * 创建时间
    */
    private Date createDate;

    /**
     * 是否有效(0:无效 1:有效)
     */
    private Integer valid;


    public Integer getStockId() {
        return stockId;
    }

    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getInventoryId() {
        return inventoryId;
    }

    public void setInventoryId(Integer inventoryId) {
        this.inventoryId = inventoryId;
    }

    public Integer getStockDetailId() {
        return stockDetailId;
    }

    public void setStockDetailId(Integer stockDetailId) {
        this.stockDetailId = stockDetailId;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getSpecificationCode() {
        return specificationCode;
    }

    public void setSpecificationCode(String specificationCode) {
        this.specificationCode = specificationCode;
    }

    public String getSpecificationExplanation() {
        return specificationExplanation;
    }

    public void setSpecificationExplanation(String specificationExplanation) {
        this.specificationExplanation = specificationExplanation;
    }

    public BigDecimal getRealInventoryNum() {
        return realInventoryNum;
    }

    public void setRealInventoryNum(BigDecimal realInventoryNum) {
        this.realInventoryNum = realInventoryNum;
    }

    public BigDecimal getCopyStockNum() {
        return copyStockNum;
    }

    public void setCopyStockNum(BigDecimal copyStockNum) {
        this.copyStockNum = copyStockNum;
    }

    public BigDecimal getProfitLossNum() {
        return profitLossNum;
    }

    public void setProfitLossNum(BigDecimal profitLossNum) {
        this.profitLossNum = profitLossNum;
    }

    public BigDecimal getCostUnitPrice() {
        return costUnitPrice;
    }

    public void setCostUnitPrice(BigDecimal costUnitPrice) {
        this.costUnitPrice = costUnitPrice;
    }

    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }

    public String getClientProductNo() {
        return clientProductNo;
    }

    public void setClientProductNo(String clientProductNo) {
        this.clientProductNo = clientProductNo;
    }

    public String getProductCname() {
        return productCname;
    }

    public void setProductCname(String productCname) {
        this.productCname = productCname;
    }

    public String getProductEname() {
        return productEname;
    }

    public void setProductEname(String productEname) {
        this.productEname = productEname;
    }

    public String getProductCdesc() {
        return productCdesc;
    }

    public void setProductCdesc(String productCdesc) {
        this.productCdesc = productCdesc;
    }

    public String getProductEdesc() {
        return productEdesc;
    }

    public void setProductEdesc(String productEdesc) {
        this.productEdesc = productEdesc;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getLotNo() {
        return lotNo;
    }

    public void setLotNo(String lotNo) {
        this.lotNo = lotNo;
    }

    public BigDecimal getTrayNumber() {
        return trayNumber;
    }

    public void setTrayNumber(BigDecimal trayNumber) {
        this.trayNumber = trayNumber;
    }

    public BigDecimal getTotalTray() {
        return totalTray;
    }

    public void setTotalTray(BigDecimal totalTray) {
        this.totalTray = totalTray;
    }

    public BigDecimal getProfitLossMoney() {
        return profitLossMoney;
    }

    public void setProfitLossMoney(BigDecimal profitLossMoney) {
        this.profitLossMoney = profitLossMoney;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("InventoryDetailEntity").append('[')
                .append("id=")
                .append(id)
                .append(",inventoryId=")
                .append(inventoryId)
                .append(",stockId=")
                .append(stockId)
                .append(",stockDetailId=")
                .append(stockDetailId)
                .append(",warehouseId=")
                .append(warehouseId)
                .append(",productCode=")
                .append(productCode)
                .append(",specificationCode=")
                .append(specificationCode)
                .append(",specificationExplanation=")
                .append(specificationExplanation)
                .append(",realInventoryNum=")
                .append(realInventoryNum)
                .append(",copyStockNum=")
                .append(copyStockNum)
                .append(",profitLossNum=")
                .append(profitLossNum)
                .append(",costUnitPrice=")
                .append(costUnitPrice)
                .append(",productUnit=")
                .append(productUnit)
                .append(",clientProductNo=")
                .append(clientProductNo)
                .append(",productCname=")
                .append(productCname)
                .append(",productEname=")
                .append(productEname)
                .append(",productCdesc=")
                .append(productCdesc)
                .append(",productEdesc=")
                .append(productEdesc)
                .append(",color=")
                .append(color)
                .append(",lotNo=")
                .append(lotNo)
                .append(",trayNumber=")
                .append(trayNumber)
                .append(",totalTray=")
                .append(totalTray)
                .append(",profitLossMoney=")
                .append(profitLossMoney)
                .append(",createDate=")
                .append(createDate)
                .append(",valid=")
                .append(valid)
                .append(']');
        return sb.toString();
    }
}